//
//  BattlingObjectView.m
//  Dispatch
//
//  Created by hyeyeon on 14. 2. 11..
//  Copyright (c) 2014년 hyeyeon. All rights reserved.
//

#import "BattlingObjectView.h"

@implementation BattlingObjectView
@synthesize imageView, mLabel;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        

        UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 63, 59)];
        image.image = [UIImage imageNamed:@"thumb_default"];
        image.center = CGPointMake(frame.size.width*0.5f, frame.size.height*0.5f);
        [self addSubview:image];
        
        imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        [self addSubview:imageView];
//
//        mLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 0, 30, 30)];
//        mLabel.backgroundColor = [UIColor whiteColor];
//        [self addSubview:mLabel];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
